package org.openstreetmap.gui.jmapviewer;

import java.awt.Shape;
import java.awt.Stroke;

/**
 * Created by: Eduardo Quintana Contreras
 * Date: 11/01/12
 * Time: 05:20 PM
 */
public class CompositeStroke implements Stroke {
	private Stroke stroke1, stroke2;

	public CompositeStroke( Stroke stroke1, Stroke stroke2 ) {
		this.stroke1 = stroke1;
		this.stroke2 = stroke2;
	}

	public Shape createStrokedShape(Shape shape) {
		return stroke2.createStrokedShape(stroke1.createStrokedShape(shape));
	}
}
